RequestHandler

Undocumented in source.

Members

Functions

onBody
void onBody(ubyte[] data)

Invoked when we get part of body for the request.

onEOM
void onEOM()

Invoked when we finish receiving the body.

onError
void onError(HTTPErrorCode code)

Request failed. Maybe because of read/write error on socket or client not being able to send request in time.

onFrame
void onFrame(WSFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
onRequest
void onRequest(HttpMessage headers)

Invoked when we have successfully fetched headers from client. This will always be the first callback invoked on your handler.

onResquest
void onResquest(HttpMessage headers)

deprecated("Incorrect spelling. Using onRequest instead.")

onUpgtade
bool onUpgtade(CodecProtocol protocol, HttpMessage msg)
Undocumented in source. Be warned that the author may not have intended to support it.
requestComplete
void requestComplete()

Invoked when request processing has been completed and nothing more needs to be done. This may be a good place to log some stats and clean up resources. This is distinct from onEOM() because it is invoked after the response is fully sent. Once this callback has been received, downstream_ should be considered invalid.

setResponseHandler
void setResponseHandler(ResponseHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

responseHandler
ResponseHandler responseHandler [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_downstream
ResponseHandler _downstream;
Undocumented in source.

Meta